package com.cnswhy.cloud.server.core.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cnswhy.cloud.common.core.base.mapper.SuperMapper;
import com.cnswhy.cloud.server.core.dto.*;
import com.cnswhy.cloud.server.core.entity.CustomerWalletTransDtl;
import com.cnswhy.cloud.server.core.entity.ShopProduct;

import com.cnswhy.cloud.server.core.entity.ShopProductDetail;
import com.cnswhy.cloud.server.core.vo.shop.ProductAppPageVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 商品详情表
 * </p>
 *
 * @author cnswhy
 * @date 2020-09-30
 */
@Repository
public interface ShopProductMapper extends SuperMapper<ShopProduct> {
    ShopProductSku queryShopProductSku(Long stockId);
    int totalAppPage(ProductQueryBo bo);
    List<ProductAppPageVo> queryAppPage(ProductQueryBo bo);
    ProductAppDetailVo queryProductAppById(Long id);
    IPage<ShopProductDetail> getShopProductDetails(IPage page, @Param("data") ShopProductDetailPageDTO shopProductDetailPageDTO);


}
